package com.atguigu.cmsservice.service.impl;

import com.atguigu.cmsservice.entity.OrdsBanner;
import com.atguigu.cmsservice.mapper.OrdsBannerMapper;
import com.atguigu.cmsservice.service.OrdsBannerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2020-04-04
 */
@Service
public class OrdsBannerServiceImpl extends ServiceImpl<OrdsBannerMapper, OrdsBanner> implements OrdsBannerService {

    @Override
    public List<OrdsBanner> getAllBanner() {
        List<OrdsBanner> ordsBanners = baseMapper.selectList(null);
        return ordsBanners;
    }
}
